package graph;


/*
 * This class represents a point with x and y coordinates
 * @authors: Clayson Celes and Andrey Bicalho
 * 05 out 2011
 */
public class Point {
	/** axis x*/
	private int x;
	/** axis y*/
	private int y;
	
	
	/*
	 * Default constructor
	 * Defines the position (0, 0)
	 */
	public Point(){
		this.x = 0;
		this.y = 0;
	}
	
	/*
	 * Overload constructor
	 * Defines the position (x, y)
	 */
	public Point(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void setX(int x){
		this.x = x;
	}
	
	public int getX(){
		return this.x;
	}
	
	public void setY(int y){
		this.y = y;
	}
		
	public int getY(){
		return this.y;
	}
	
	
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false; 
          }
        if (!(obj instanceof Point)) { 
            return false;
        }
        final Point other = (Point) obj;
        if(this.getX()==other.getX() && this.getY()==other.getY()){
        	return true;
        }else{
        	return false;
        }
    }
    
    @Override
    public int hashCode() {
          return 0;
    }
	

}
